package com.budwk.app.sqfw.models;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.util.Date;

/**
 * @author ZY.Wang
 * @since 2024/6/12
 */
@Data
@Accessors(chain = true)
@Table("shequ.sqfw_dynamic_form_conf")
@Comment("人口调查表")
@ApiModel(description = "人口调查表")
public class DynamicFormConf {

    @Column("id")
    @Name
    @Comment("编号")
    @ApiModelProperty(description = "ID")
    @ColDefine(type = ColType.VARCHAR, width = 100)
    @PrevInsert(uu32 = true)
    private String id;

    @Column("conf")
    @Comment("服务配置")
    @ApiModelProperty(description = "服务id")
    @ColDefine(type = ColType.TEXT, width = 120)
    private String conf;

    @Column("created_by")
    @Comment("创建人")
    @ApiModelProperty(description = "服务id")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String createdBy;

    @Column("create_date")
    @Comment("创建时间")
    @ApiModelProperty(description = "创建时间")
    @ColDefine(type = ColType.TIMESTAMP, width = 6)
    private Date createDate;

    @Column("updated_by")
    @Comment("更新人")
    @ApiModelProperty(description = "服务id")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String updatedBy;

    @Column("update_date")
    @Comment("更新时间")
    @ApiModelProperty(description = "更新时间")
    @ColDefine(type = ColType.TIMESTAMP, width = 6)
    private Date updateDate;

    @Column("type")
    @Comment("类型")
    @ApiModelProperty(description = "类型")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String type;

    @Column("province")
    @Comment("省份")
    @ApiModelProperty(description = "省份")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String province;

    @Column("city")
    @Comment("市")
    @ApiModelProperty(description = "市")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String city;

    @Column("district")
    @Comment("区")
    @ApiModelProperty(description = "区")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String district;

    @Column("county")
    @Comment("街道")
    @ApiModelProperty(description = "街道")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String county;

    @Column("community")
    @Comment("社区")
    @ApiModelProperty(description = "社区")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String community;
}
